package com.hsg.creature;

import com.hsg.transport.*;

/**
 * @description:
 * @author:hsg
 * @date: Created in 2020/5/14 11:43
 * @version: 1.8
 * @modified By:
 */
public class Person {
    private String id;//实例化的时候，做为对象的第一标识
    private String P_Name;
    private int P_Age;
    private String P_Sex;
    //
    public void driveTransport(AirTransport airTransport){
        System.out.println("driving "+airTransport.getId());
    }
    public void driveTransport(LandTransport landTransport){
        System.out.println("driving "+landTransport.getId());
    }
    public void driveTransport(MaritimeMeansOfTransport maritimeMeansOfTransport){
        System.out.println("driving "+maritimeMeansOfTransport.getId());
    }

    public Person(){
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getP_Name() {
        return P_Name;
    }

    public void setP_Name(String p_Name) {
        P_Name = p_Name;
    }

    public int getP_Age() {
        return P_Age;
    }

    public void setP_Age(int p_Age) {
        P_Age = p_Age;
    }

    public String getP_Sex() {
        return P_Sex;
    }

    public void setP_Sex(String p_Sex) {
        P_Sex = p_Sex;
    }
}
